package csel.model;

import junit.framework.TestCase;
import java.util.*;
import org.junit.*;

public class SerializationTester extends TestCase
{
	public SerializationTester()
	{
		
	}
	
	@Test
	public void testSaveAndLoad()
	{
		GameData data;
		SerializationLoaderSaver lns = new SerializationLoaderSaver(); 
		
		List<Entity> entities = new LinkedList<Entity>();
		Entity playerEntity = new Entity(new GameGlobals(), new Summoner());
		Map map = new Map(10, 10);
		
		data = new GameData(new GameGlobals(), entities, playerEntity, map);
		
		try
		{
			lns.save("test.sav", data);
		}
		catch (java.io.IOException ex)
		{
			System.err.println(ex.toString());
		}
		
		//TODO: add assert logic here
	}
}
